package com.example.tianling.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.tianling.entity.MatchEntity;
import com.example.tianling.entity.RoomEntity;
import com.example.tianling.entity.UserEntity;

import java.util.List;

public interface MatchService extends IService<MatchEntity> {
    // 用户匹配匹配相关
    void updateRealNumber(Integer roomId, Integer realNumber);
    MatchEntity getMatch(String type);
    MatchEntity createMatch(RoomEntity room);


    // 房间内相关
    void removeByRoomId(Integer roomId);


    // 房间匹配相关
    MatchEntity getMatchByRoom(RoomEntity room);

    void insertRoom(RoomEntity room);

    void removeByUserId(Integer userId);

    void updateIsMerge(Integer roomId, Integer isMerge);

}
